package com.ji.li.reactadminproexampleservice.dto;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

public class UserLogin {
    public String getUserName() {
        return userName;
    }

    public String getPassWord() {
        return passWord;
    }

    public Boolean getRememberMe() {
        return rememberMe;
    }

    public String getType() {
        return type;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public void setRememberMe(Boolean rememberMe) {
        this.rememberMe = rememberMe;
    }

    public void setType(String type) {
        this.type = type;
    }

    @NotNull(message = "userName 不能为null")
    private String userName;
    @NotNull(message = "passWord 不能为null")
    private String passWord;
    @NotNull(message = "rememberMe 不能为null")
    private Boolean rememberMe;
    @NotNull(message = "type 不能为null")
    @Pattern(regexp = "(^account$|^phone$)", message = "type 值不在可选范围 { account,phone }")
    private String type;
}
